package org.example.equalsAndHashCode;

public class TestCode {
    public static void main(String[] args) {
        Cat cat1 = new Cat();
        cat1.setName("金渐层");
        cat1.setColor("黄色");

        Cat cat2 = new Cat();
        cat2.setName("橘猫");
        cat2.setColor("黄色");

        System.out.println(cat1.equals(cat2));
    }
}
